/**
 * 数据备份设置
 * @author rxliuli
 */
class DataBackupSetting {
    /**
     * 构造函数
     * @param {Object} [option] 可选参数
     * @param {Array.<String>} [option.tables] 数据库
     * @param {Number} [option.backupIcpPicture] 核验图片
     * @param {Number} [option.backupIcpIspFile] 通讯文件
     * @param {Number} [option.backupIcpDay] 自动备份天数
     * @param {Number} [option.backupIcpNum] 保留备份数量
     * @param {...Object} [option.args] 其他参数
     */
    constructor({
                    tables,
                    backupIcpPicture,
                    backupIcpIspFile,
                    backupIcpDay,
                    backupIcpNum,
                    ...args
                } = {}) {
        this.tables = tables
        this.backupIcpPicture = backupIcpPicture
        this.backupIcpIspFile = backupIcpIspFile
        this.backupIcpDay = backupIcpDay
        this.backupIcpNum = backupIcpNum
        Object.assign(this, args)
    }
}





